package com.dzjcloud.dzj.upms.api.feign;

import com.dzjcloud.dzj.common.fegin.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Map;

/**
 * <h3>dzj-cloud</h3>
 * <p>Face旷视fegin</p>
 *
 * @author : DongZeJian
 * @date : 2021-06-02 12:25
 **/
//@FeignClient(name = "faceFeginService",url = "${Face.url}",configuration = FeignConfig.class)
public interface FaceFeginService {


    @PostMapping("/cardpp/v1/ocridcard")
    Map idCardIdentify(@RequestParam(value = "api_key") String api_key,@RequestParam(value = "api_secret") String api_secret,@RequestPart("image_file") File image_file);
}
